package net.xdclass.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author lixin
 * @since 2024-09-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("product_order_item")
@ApiModel(value="ProductOrderItem对象", description="")
public class ProductOrderItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "订单号")
    @TableField("product_order_id")
    private Long productOrderId;

    @TableField("out_trade_no")
    private String outTradeNo;

    @ApiModelProperty(value = "产品id")
    @TableField("product_id")
    private Long productId;

    @ApiModelProperty(value = "商品名称")
    @TableField("product_name")
    private String productName;

    @ApiModelProperty(value = "商品图片")
    @TableField("product_img")
    private String productImg;

    @ApiModelProperty(value = "购买数量")
    @TableField("buy_num")
    private Integer buyNum;

    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "购物项商品总价格")
    @TableField("total_amount")
    private BigDecimal totalAmount;

    @ApiModelProperty(value = "购物项商品单价")
    @TableField("amount")
    private BigDecimal amount;


}
